Skip to content

Add documentation project to Visual Studio solution#37

Merged
Reefact merged 4 commits into
mainfrom
claude/dev-docs-vs-access-pagk5h
Jul 6, 2026
Merged

Add documentation project to Visual Studio solution#37
Reefact merged 4 commits into
mainfrom
claude/dev-docs-vs-access-pagk5h

Conversation

@Reefact

@Reefact Reefact commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

Add a documentation-only C# project to the Visual Studio solution that surfaces all documentation files (Markdown pages, images, and assets) in the Solution Explorer, making them easy to find, read, and edit alongside the code.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Analyzer / diagnostic change
  • Tests
  • Documentation
  • Build / CI / tooling

Changes

  • Created doc/FirstClassErrors.Documentation.csproj: a documentation-only project that:

    • Includes all files under doc/ (Markdown pages, images, and other assets) via a glob pattern
    • Links the repository's root README.md for browsability from the project
    • Compiles nothing and produces no assembly (no build cost or new dependencies)
    • Is excluded from solution build configurations
    • Automatically picks up new documentation files without manual project edits
  • Updated FirstClassErrors.sln:

    • Removed README.md from the "Solution Items" section
    • Added the new FirstClassErrors.Documentation project
    • Added a "doc" solution folder to organize the documentation project
    • Configured the documentation project to not build in Debug or Release configurations

Testing

  • dotnet build FirstClassErrors.sln — not run (documentation project is excluded from build)
  • dotnet test FirstClassErrors.sln — not run (no tests affected)
  • Analyzer tests pass — not applicable

Documentation

  • No documentation change required

Related issues

claude added 4 commits July 6, 2026 20:54
Introduce FirstClassErrors.Documentation, a non-compiling project that
globs doc/**/*.md so every English (*.en.md) and French (*.fr.md)
documentation page, including the analyzer pages under doc/analyzers,
shows up in the Visual Studio Solution Explorer and can be read and
edited next to the code. New documentation files are picked up
automatically by the glob, with no need to touch the project or the
solution.

The project compiles nothing (EnableDefaultItems=false) and produces no
assembly (IncludeBuildOutput=false). It is also excluded from the
solution build configurations (no Build.0 entries), so both
`dotnet build FirstClassErrors.sln` and "Build Solution" in Visual
Studio skip it. No new dependency is introduced.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MykuaQS64zUdvmqcmW2C3N
Broaden the documentation project globs so image assets referenced by the
Markdown pages (e.g. doc/images/first-class-errors.png) also show up in the
Visual Studio Solution Explorer, next to the *.md pages. Common image
extensions are covered so future assets are picked up automatically. The
project still compiles nothing and stays excluded from the solution build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MykuaQS64zUdvmqcmW2C3N
Replace the per-extension globs with a single include that surfaces every
file under doc/ (Markdown pages, images and any future asset) in the Visual
Studio Solution Explorer, excluding only the build artifacts (obj/, bin/)
and the project file itself. This keeps the documentation view complete
without having to enumerate file types. The project still compiles nothing
and stays excluded from the solution build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MykuaQS64zUdvmqcmW2C3N
Move the main README.md from the "Solution Items" solution folder into the
FirstClassErrors.Documentation project, referenced as a linked file
(..\README.md with Link metadata) since it lives at the repository root,
outside doc/, and cannot be reached by the project glob. This keeps all the
documentation entry points grouped under a single project in the Solution
Explorer. The .gitignore and LICENSE entries stay in Solution Items.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MykuaQS64zUdvmqcmW2C3N
@Reefact Reefact merged commit 79f94d5 into main Jul 6, 2026
2 checks passed
@Reefact Reefact deleted the claude/dev-docs-vs-access-pagk5h branch July 6, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants